import axios from './index'
//登录接口
export function MyLogin(data){
    return axios({
        url:"/login/userName/v2",
        method:"post",
        data
    });
}

//token有效性校验
export function checkToken(){
    return axios({
        url:"/user/checkToken",
        method:"get"
    });
}

//拉取当前用户的权限列表
export function myActions(){
    return axios({
        url:"/user/myActions",
        method:"get"
    });
}

//当前登录账号信息
export function info(){
    return axios({
        url:"/user/info",
        method:"get"
    });
}

//统计当前站点数据
export function getStatistics(){
    return axios({
        url:"user/statistics/days?quickDays=30",
        method:"get"
    });
}